package com.person.leetcode.editor.cn;

/**
  * 433.最小基因变化
  * 2022-05-07 09:17:14
**/
public class Sequence_0433_MinimumGeneticMutation {
    public static void main(String[] args) {

        float rate = (float) 0.026;
        float rateByMonth = rate / 12;
        int months = 12;
        int salary = 5000;
        double total = 0;
        for (int i = 0; i < months; i++) {
            total =  (total+salary)*(1+rateByMonth);
        }
        double surplus = total - salary * 12;
        double surplusRate = surplus / (12 * salary);
        System.out.println(surplus);
        System.out.println(surplusRate);
        System.out.println(12* salary * rate);

        //Solution solution = new Sequence_0433_MinimumGeneticMutation().new Solution();
    }
    //leetcode submit region begin(Prohibit modification and deletion)
class Solution {

}
//leetcode submit region end(Prohibit modification and deletion)

}
